package com.zxg.weixin.api.service.domain;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class WeixinTransferRequest {

	
    
    private String partner_trade_no;
    private String nonce_str;
    private String mch_id;
    private String mch_appid;
    private String openid;
    private Integer amount;
    /**
     *  NO_CHECK：不校验真实姓名 
		FORCE_CHECK：强校验真实姓名（未实名认证的用户会校验失败，无法转账） 
		OPTION_CHECK：针对已实名认证的用户才校验真实姓名（未实名认证用户不校验，可以转账成功）
     */
     private String check_name="NO_CHECK";
    private String re_user_name;
    private String spbill_create_ip;
    private String desc;
    
    public Map<String, String> getParams(){
    	Map<String, String> parMap = new HashMap<String, String>();
        parMap.put("nonce_str", ""+nonce_str);
        parMap.put("partner_trade_no", mch_id+new SimpleDateFormat("yyyyMMdd").format(new Date())+partner_trade_no);
        parMap.put("mchid", ""+mch_id);
        parMap.put("mch_appid", mch_appid);
        parMap.put("openid", openid);
        parMap.put("amount", amount+"");
        parMap.put("check_name", check_name+"");
        if(re_user_name!=null)
        	parMap.put("re_user_name", re_user_name);
        parMap.put("spbill_create_ip", spbill_create_ip);
        parMap.put("desc", desc);
        
        return parMap;
    }

	public String getPartner_trade_no() {
		return partner_trade_no;
	}

	public void setPartner_trade_no(String partner_trade_no) {
		this.partner_trade_no = partner_trade_no;
	}

	public String getNonce_str() {
		return nonce_str;
	}

	public void setNonce_str(String nonce_str) {
		this.nonce_str = nonce_str;
	}

	public String getMch_id() {
		return mch_id;
	}

	public void setMch_id(String mch_id) {
		this.mch_id = mch_id;
	}

	public String getMch_appid() {
		return mch_appid;
	}

	public void setMch_appid(String mch_appid) {
		this.mch_appid = mch_appid;
	}


	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String getCheck_name() {
		return check_name;
	}

	public void setCheck_name(String check_name) {
		this.check_name = check_name;
	}

	public String getRe_user_name() {
		return re_user_name;
	}

	public void setRe_user_name(String re_user_name) {
		this.re_user_name = re_user_name;
	}

	public String getSpbill_create_ip() {
		return spbill_create_ip;
	}

	public void setSpbill_create_ip(String spbill_create_ip) {
		this.spbill_create_ip = spbill_create_ip;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
    
    
    
}
